package com.zte.claa.inficombo.csa.app.service.sapi.ffhost.bean;

import java.sql.Timestamp;

import com.fasterxml.jackson.annotation.JsonFormat;

public class FFHostPartState {
	private long logid = 0;	//	记录ID	Long	自增长	N	主键
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",  timezone="GMT+8")
	private Timestamp collecttime;	//	采集时间	Timestamp		N	创建索引
	private String deveui;		//	消防设施系统资源编号	Varchar(100)	NA	N	创建索引 
	private String projectid;	//	项目ID	VARCHAR(200)		N	归属项目，	创建索引 
	private int systype = 0;	//	消防设施系统类型	Int	0	N	参见GB规范定义
	private int sysaddr = 0;	//	消防设施系统地址	Int	0	N	
	private int parttype = 0;	//	消防设施部件类型	Int	0	N	
	private String partaddr;	//	消防设施部件	Varchar(10)	0	N，16进制数字字符串，大写.	
	private int statevalue = 0;	//	消防设施部件状态原始值	Int	0	N	
	private byte runstate = 0;	//	运行状态	Byte	0	N	1--正常运行；	0--测试状态；
	private byte firestate = 0;	//	火警状态	Byte	0	N	1--火警；	0--无火警；
	private byte failstate = 0;	//	故障状态	Byte	0	N	1--故障；	0--无故障；
	private byte maskstate = 0;	//	屏蔽状态	Byte	0	N	1--屏蔽；	0--无屏蔽；
	private byte monistate = 0;	//	监管状态	Byte	0	N	1--监管；	0--无监管；
	private byte openstate = 0;	//	开启状态	Byte	0	N	1--开启；	0--关闭；
	private byte feedbackstate = 0;	//	反馈状态	Byte	0	N	1--反馈；	0--无反馈；
	private byte delaystate = 0;	//	延时状态	Byte	0	N	1--延时状态；	0--未延时；
	private byte powerstate = 0;	//	电源状态	Byte	0	N	1--电源故障；	0--电源正常；
	private byte resrv1 = 0;	//	预留1	Byte	0	Y	0
	private byte resrv2 = 0;	//	预留2	Byte	0	Y	0
	private byte resrv3 = 0;	//	预留3	Byte	0	Y	0
	private byte resrv4 = 0;	//	预留4	Byte	0	Y	0
	private byte resrv5 = 0;	//	预留5	Byte	0	Y	0
	private byte resrv6 = 0;	//	预留6	Byte	0	Y	0
	private byte resrv7 = 0;	//	预留7	Byte	0	Y	0
	private String remark;		//	部件说明	Varchar(100) Y	
	
	public FFHostPartState(){
		
	}

	public long getLogid() {
		return logid;
	}

	public void setLogid(long logid) {
		this.logid = logid;
	}

	public Timestamp getCollecttime() {
		return collecttime;
	}

	public void setCollecttime(Timestamp collecttime) {
		this.collecttime = collecttime;
	}

	public String getDeveui() {
		return deveui;
	}

	public void setDeveui(String deveui) {
		this.deveui = deveui;
	}

	public String getProjectid() {
		return projectid;
	}

	public void setProjectid(String projectid) {
		this.projectid = projectid;
	}

	public int getSystype() {
		return systype;
	}

	public void setSystype(int systype) {
		this.systype = systype;
	}

	public int getSysaddr() {
		return sysaddr;
	}

	public void setSysaddr(int sysaddr) {
		this.sysaddr = sysaddr;
	}

	public int getParttype() {
		return parttype;
	}

	public void setParttype(int parttype) {
		this.parttype = parttype;
	}

	public String getPartaddr() {
		return partaddr;
	}

	public void setPartaddr(String partaddr) {
		this.partaddr = partaddr;
	}

	public int getStatevalue() {
		return statevalue;
	}

	public void setStatevalue(int statevalue) {
		this.statevalue = statevalue;
	}

	public byte getRunstate() {
		return runstate;
	}

	public void setRunstate(byte runstate) {
		this.runstate = runstate;
	}

	public byte getFirestate() {
		return firestate;
	}

	public void setFirestate(byte firestate) {
		this.firestate = firestate;
	}

	public byte getFailstate() {
		return failstate;
	}

	public void setFailstate(byte failstate) {
		this.failstate = failstate;
	}

	public byte getMaskstate() {
		return maskstate;
	}

	public void setMaskstate(byte maskstate) {
		this.maskstate = maskstate;
	}

	public byte getMonistate() {
		return monistate;
	}

	public void setMonistate(byte monistate) {
		this.monistate = monistate;
	}

	public byte getOpenstate() {
		return openstate;
	}

	public void setOpenstate(byte openstate) {
		this.openstate = openstate;
	}

	public byte getFeedbackstate() {
		return feedbackstate;
	}

	public void setFeedbackstate(byte feedbackstate) {
		this.feedbackstate = feedbackstate;
	}

	public byte getDelaystate() {
		return delaystate;
	}

	public void setDelaystate(byte delaystate) {
		this.delaystate = delaystate;
	}

	public byte getPowerstate() {
		return powerstate;
	}

	public void setPowerstate(byte powerstate) {
		this.powerstate = powerstate;
	}

	public byte getResrv1() {
		return resrv1;
	}

	public void setResrv1(byte resrv1) {
		this.resrv1 = resrv1;
	}

	public byte getResrv2() {
		return resrv2;
	}

	public void setResrv2(byte resrv2) {
		this.resrv2 = resrv2;
	}

	public byte getResrv3() {
		return resrv3;
	}

	public void setResrv3(byte resrv3) {
		this.resrv3 = resrv3;
	}

	public byte getResrv4() {
		return resrv4;
	}

	public void setResrv4(byte resrv4) {
		this.resrv4 = resrv4;
	}

	public byte getResrv5() {
		return resrv5;
	}

	public void setResrv5(byte resrv5) {
		this.resrv5 = resrv5;
	}

	public byte getResrv6() {
		return resrv6;
	}

	public void setResrv6(byte resrv6) {
		this.resrv6 = resrv6;
	}

	public byte getResrv7() {
		return resrv7;
	}

	public void setResrv7(byte resrv7) {
		this.resrv7 = resrv7;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
		if(this.remark != null){
			this.remark = this.remark.trim();
		}
	}
	
}
